﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ApiTest.aspx.cs" Inherits="MobileAPI.Web.APITest.ApiTest"
    ValidateRequest="false" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript">
        function setIframeDocSrc() {
            var url = "Html/" + document.getElementById("ddlApiList").value + ".htm";
            document.getElementById("ifmDoc").src = url;
        }
    </script>
</head>
<body onload="setIframeDocSrc()">
    <form id="form1" runat="server">
    <asp:DropDownList ID="ddlApiList" runat="server" OnSelectedIndexChanged="ddlApiList_SelectedIndexChanged"
        Width="530px" AutoPostBack="True">
    </asp:DropDownList>
    <asp:Button ID="btnSubmit" runat="server" Text="提交数据" OnClick="btnSubmit_Click" />
    <div>
        <table style="width: 100%; font-size: small">
            <tr>
                <td>
                    【报文格式】
                    <asp:RadioButton ID="rdoXml" runat="server" Text="xml" GroupName="format" OnCheckedChanged="rdoXml_CheckedChanged"
                        AutoPostBack="true" />
                    <asp:RadioButton ID="rdoJson" runat="server" Text="josn" GroupName="format" OnCheckedChanged="rdoJson_CheckedChanged"
                        AutoPostBack="true" />
                </td>
                <td>
                    &nbsp;
                </td>
                <td class="style1">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td></td>
                <td>
                    &nbsp;
                </td>
                <td></td>
            </tr>
            <tr>
                <td>
                    【请求报文】
                    <br />
                    <asp:TextBox ID="txtRequestMsg" runat="server" TextMode="MultiLine" Width="600px"
                        Height="300px"></asp:TextBox>
                        <br />
                        【返回报文】
                        <br />
                    <asp:TextBox ID="txtResponseMsg" runat="server" TextMode="MultiLine" Width="600px"
                        Height="450px"></asp:TextBox>
                </td>
                <td rowspan="3" valign="top">
                    <iframe id="ifmDoc" name="ifmDoc" src="" width="1100" height="800" frameborder="0">
                    </iframe>
                </td>
                <td>
                错误代码列表：
                <br />
                    <asp:ListBox ID="lbxCodeList"  height="700" width="200" runat="server"></asp:ListBox>
                </td>
            </tr>
            <tr style="height: 5px">
                <td>
                    &nbsp;
                    
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
